﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Acme.BookStore.Storage.DTO
{
    public class CreateUpdatePurchaseOrderDto
    {
        [Required]
        [StringLength(50)]
        public string PurchaseNumner { get; set; }

        [Required]
        public int DocumentStatus { get; set; }

        [Required]
        public DateTime ArrivalDate { get; set; }

        [Required]
        [StringLength(100)]
        public string Vendor { get; set; }

        [Required]
        [StringLength(100)]
        public string IncomingGoodsDepartment { get; set; }

        [Required]
        [StringLength(50)]
        public string Purchaser { get; set; }

        [Required]
        [Range(0, int.MaxValue)]
        public int GoodsNumber { get; set; }

        [Required]
        [Range(0, int.MaxValue)]
        public int AmountPurchase { get; set; }
        public string Phone { get; set; }
        public string PurchaseOrderName { get; set; }
    }
}
